package 测试01;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by hest0 on 2017/7/2.
 */
public class Main2 {
    public static void main(String[] args) {
        String s = "ABVF&*(&huhu&*(&)*7890789";
        Matcher m = Pattern.compile("[^\\W]+").matcher(s);
        StringBuffer sb = new StringBuffer();
        while(m.find()){
            String tmp = m.group();
            sb.append(tmp).append(" ");
        }
        System.out.println(sb.toString());
    }
}
